package com.baor.dao;

import com.baor.domain.CouponUserVo;
import com.github.yulichang.base.mapper.MPJJoinMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

public interface CouponUserDao extends MPJJoinMapper<CouponUserVo> {
    List<CouponUserVo> list(Map<String,Object> params);
    Map<String,Object> findPageCount(Map<String,Object> params);
    List<Map<String,Object>> orderList(Map<String,Object> params);
    int useCoupon(CouponUserVo vo);
    @Select("select * from t_coupon_user where user_id = #{userId}")
    List<CouponUserVo> couponList(Map<String,Object> params);
}
